
<%# View a reipce %>

<h1><%= @recipemedia.rmedia.title  %></h1>

 <% if session[:logged_in] == 1 %>
<div id="rating">
  <%= render(:partial => "ratings/rating", :object => {:id => @recipemedia.id}) %>
</div>

<div id="cookbook">
  <p>
    <%= render(:partial => "my_cookbooks", :object => {:recipe_id => @recipemedia.id}) %>
  </p>
</div>
<% end %>

<p>
<div id ="ingredients_list">
   <%= render(:partial => "ingredient_list", :object => @recipemedia.rmedia) %>
</div>
</p>

 <p>
  <b>Category:</b>
  <%=h @recipemedia.rmedia.category %>
</p>

 <p>
  <b>Description:</b>
  <%=h @recipemedia.rmedia.description %>
</p>

 <p>
  <b>Directions:</b>
  <%=h @recipemedia.rmedia.directions %>
</p>
<% if session[:logged_in] == 1 %>
  <%= link_to 'Edit', :controller=>"recipe", :id=>@recipemedia, :action => "update" %>
<% end %>

<div id="comments">
  <%= render(:partial => "comments/comments", :object => {:id => @recipemedia.id}) %>
</div>